package com.dick.base.parameter;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class MatchParameter {

    @NotNull(message = "请选择订单项")
    private Long id;

    @NotNull(message = "请输入配板数量")
    @Min(value = 1, message = "配板数量必须大于0")
    private Integer quantity;

    @NotEmpty(message = "请选择材质")
    private String material;

    @NotEmpty(message = "请选择厚度")
    private String thickness;

    @NotNull(message = "请选择宽度")
    private Integer width;

    @NotNull(message = "请输入长度")
    private Integer length;
}
